<html xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:h="http://java.sun.com/jsf/html"  
      xmlns:f="http://java.sun.com/jsf/core"  
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:pe="http://primefaces.org/ui/extensions"> 

    <!--**************************************************************-->
    <!--                       TABELA DE PRODUTO DA NFE               -->
    <!--**************************************************************-->
    <h:form id="FormItens" >  
        <p:dataTable var="item" value="#{digitaNfeControler.nfe.nfeDetalheList}" paginator="true" rows="10" rowsPerPageTemplate="5,10,15">  
            <p:column headerText="Codigo produto" sortBy="#{item.produto.gtin}" >  
                <h:outputText value="#{item.produto.gtin}" />  
            </p:column>  

            <p:column headerText="Produto" sortBy="#{item.produto.descricao}">  
                <h:outputText value="#{item.produto.descricao}" />  
            </p:column>  

            <p:column headerText="Quantidade" sortBy="#{item.quantidadeComercial}">  
                <h:outputText value="#{item.quantidadeComercial}" />  
            </p:column>  

            <p:column headerText="Vlr.Unitário" sortBy="#{item.valorUnitarioComercial}">  
                <h:outputText value="#{item.valorUnitarioComercial}" >
                    <f:convertNumber type="currency"/>
                </h:outputText> 
            </p:column>  

            <p:column headerText="Valor total" sortBy="#{item.valorTotal}">  
                <h:outputText value="#{item.valorTotal}" >
                    <f:convertNumber type="currency"/>
                </h:outputText> 
            </p:column>  
        </p:dataTable>  
    </h:form>  
</html>